package 链表;

public class test {
    public static void main(String[] args) {
        Node1 list=new Node1();
        list.addFirst(1);
        list.addFirst(2);
        list.addFirst(3);
        list.addFirst(4);

        /*list.loop1();
        list.loop2(value->{
            System.out.println(value);
        });
        list.loop3(value->{
            System.out.println(value);
        });
        System.out.println(list.findLast());
        list.addLast(3);
        list.loop1();
        list.test();
        System.out.println(list.findnode(2).value);*/
        /*list.insert(12,2);*/
       /* list.loop1();*/
        /*list.removeFirst();
        list.loop1();*/
       /* list.remove(2);
        list.loop1();;*/
        for(Integer value:list){//迭代器循环遍历
            System.out.println(value);
        }

    }
}
